#include<stdio.h>
int i = 0, j = 0, n = 0, m = 0;
void is_prime(int n)
{
	for (i = 1; i <= n; i++)
	{
		for (j = 1; j <= n; j++)
		{
			m = i * j;
			printf("%d*%d=%-5d", i, j, m);
		}
		printf("\n");
	}
}
int main()
{
	scanf_s("%d", &n);
	is_prime(n);
	return 0;
}